Skip to content

fix(ci): extend gate to cover all published downstream packages#130

Merged
krisnye merged 2 commits into
mainfrom
krisnye/ci-full-monorepo
Jun 24, 2026
Merged

fix(ci): extend gate to cover all published downstream packages#130
krisnye merged 2 commits into
mainfrom
krisnye/ci-full-monorepo

Conversation

@krisnye

@krisnye krisnye commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

The CI gate only checked `@adobe/data`. The type error in `data-lit` introduced by #127 was invisible to CI and reached main undetected (#129 merged with a broken build).

  • Adds a second CI job `packages` that runs after `data`
  • Rebuilds `@adobe/data` to produce `dist/` for downstream tsc
  • Builds (type-checks via `tsc -b`) all six `@adobe/data-*` packages
  • Runs tests for each: vitest for lit/gpu/react/solid/sync; `test:node` for persistence (avoids Playwright in CI)
  • A failure in any downstream package now blocks merge

The `data-lit` fix (constraining `useDragTransaction<T extends {} | null>`) was pushed directly to main as a hotfix — this PR exists to ensure it cannot happen silently again.

🤖 Generated with Claude Code

krisnye and others added 2 commits June 24, 2026 14:08
The CI gate only checked @adobe/data; data-lit's type error introduced
in #127 was invisible to CI and reached main undetected.

Two jobs now:
- data: existing @adobe/data typecheck + lint + test (unchanged)
- packages: depends on data; rebuilds @adobe/data for dist/, then
  builds (tsc -b) and tests all @adobe/data-* packages. data-persistence
  uses test:node to avoid the Playwright browser requirement in CI.

Also fixes the latent data-lit error: useDragTransaction<T> now
constrains T extends {} | null to satisfy withFilter's U bound
(tightened in #127).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
"a+" (append+read) ignores the position argument on writes — every
handle.write() lands at EOF regardless of the offset passed. This made
writeAt semantically equivalent to appendAt, so all conformance tests
that write at a non-zero offset failed.

O_RDWR|O_CREAT (read+write, create-if-missing, never truncate) is the
correct flag set: positions are honoured on write, the file is created
on first open, and existing content is never clobbered.

These tests were never run in CI before the packages job was added in
this branch, so the bug went undetected since #102.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@krisnye krisnye merged commit 48c3784 into main Jun 24, 2026
4 checks passed
@krisnye krisnye deleted the krisnye/ci-full-monorepo branch June 24, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant